home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / LoaderHandler.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  56 lines

  1. /*
  2.  * @(#)LoaderHandler.java    1.5 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.rmi.server;
  16.  
  17. import java.net.MalformedURLException;
  18. import java.net.URL;
  19.  
  20. public interface LoaderHandler {
  21.     /**
  22.      * Find loader handler package prefix: assumes that the implementation of
  23.      * the LoaderHandler class is located in the package defined by the
  24.      * prefix.
  25.      */
  26.     final static String packagePrefix =
  27.     System.getProperty("java.rmi.loader.packagePrefix", "sun.rmi.server");
  28.  
  29.     /**
  30.      * Load class using java.rmi.server.codebase property.
  31.      *
  32.      * @exception java.lang.ClassNotFoundException if the class could not be
  33.      *              found.
  34.      * @exception java.net.MalformedURLException   if the URL is malformed.
  35.      */
  36.     Class loadClass(String name)
  37.     throws MalformedURLException, ClassNotFoundException;
  38.  
  39.     /**
  40.      * Load class from codebase URL specified.
  41.      *
  42.      * @exception java.lang.ClassNotFoundException if the class could not be
  43.      *              found.
  44.      * @exception java.net.MalformedURLException   if the URL is malformed.
  45.      */
  46.     Class loadClass(URL codebase, String name)
  47.     throws MalformedURLException, ClassNotFoundException;
  48.  
  49.     /**
  50.      * Returns the security context of the given class loader
  51.      * (e.g., a URL)
  52.      */
  53.     Object getSecurityContext(ClassLoader loader);
  54.     
  55. }
  56.